import { createStore } from "vuex";
import getters from "./getters";
import user from "./modules/user";
import system from "./modules/system";

export default createStore({
  state: {
    user: null,
    token: null,
  },
  getters,
  mutations: {
    SET(state, { key, value }) {
      state[key] = value;
    },
  },
  actions: {},
  modules: {
    user,
    system,
  },
});
